<?php
include_once('../common.inc.php');
if( !defined("__ROOT__") ) die("Access denied");
if( get_param('account') ){
	$name = get_param('account');
	$password = get_param('pwd');
	if( $name == 'admin' && $password == 'admin' ){
		$_SESSION['admin'] = $name;
		header('location:index.php');
		exit();
	}
}
$smarty = new Tpl();
$smarty->display('admin/login.html');
